from django.shortcuts import render

from model.models import *

def index(request):
	#latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
	welcomeImages = ImageWelcome.objects.all()
	groups = Group.objects.all()
	questions = Question.objects.all()
	context = {'welcomeImages': welcomeImages,
				'groups': groups,
				'questions': questions,
				}
	return render(request, 'model/index.html', context)

